<div #port (mousedown)="handleClick($event)"
(mouseup)="handleMouseUp($event)"
(mouseover)="autoAttach()" (mouseleave)="detach()"
class="port"
>
    <div #portImage class="port-image" ></div>
</div>